
-- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info
DEBUG = 1

-- display FPS stats on screen
DEBUG_FPS = true

-- dump memory info every 10 seconds
DEBUG_MEM = false

-- load deprecated API
LOAD_DEPRECATED_API = false

-- load shortcodes API
LOAD_SHORTCODES_API = true

-- screen orientation
CONFIG_SCREEN_ORIENTATION = "landscape"

-- design resolution
CONFIG_SCREEN_WIDTH  = 960
CONFIG_SCREEN_HEIGHT = 640

LOGIN_IP = "127.0.0.1:8001"
GAME_IP = "127.0.0.1:8888"
-- LOGIN_IP = "198.74.119.196:8001"
-- GAME_IP = "198.74.119.196:8888"
-- auto scale mode
CONFIG_SCREEN_AUTOSCALE = "FIXED_HEIGHT"

cc.FileUtils:getInstance():addSearchPath("res/")

require("framework.init")

-- musics
MUSIC = {
    backgroundMusic = "music/newdali.mp3",
    -- backgroundMusic = "sound/b_1.mp3",
}

audio.preloadMusic(MUSIC.backgroundMusic)

-- effects
EFFECT = {
}

for i=1,9 do
	 EFFECT[""..i]="sound/b_"..i..".mp3"
	 EFFECT["1"..i]="sound/b_1"..i..".mp3"
	 EFFECT["2"..i]="sound/b_2"..i..".mp3"
end

-- preload all effects
for k, v in pairs(EFFECT) do
    audio.preloadSound(v)
end